Pain threshold assessment